package com.glut.forum.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;

import java.sql.Date;
import java.time.LocalDateTime;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author jobob
 * @since 2021-09-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class User extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(value = "item_id", type = IdType.AUTO)
    private Integer itemId;

    private String itemCode;

    /**
     * 昵称
     */
    private String nickName;

    private String sex;

    /**
     *  个性签名
     */
    private String description;

    private String email;

    private String phone;

    private String password;

    /**
     *  用户角色（0 普通用户， 1管理员）
     */
    private Integer role;

    /**
     * 头像路径
     */
    private String avatarsUrl;

    private Date createTime;

    private Date updateTime;


}
